package com.example.demo.test;

import com.example.demo.component.zibbix.zibbix_client;
import com.example.demo.component.zibbix.zibbix_client_factory;
import com.example.demo.component.zibbix.zibbix_client_util;
import com.example.demo.component.zibbix.zibbix_monitor_items;

import java.util.Scanner;

/**
 * @ClassName zibbix_test
 * @Descrhosttion
 * @date 2022/11/11 10:31
 * @Author yanceysong
 * @Version 1.0
 */
public class zibbix_test {
    public static void main(String[] args) {
        //获取客户端
//        zibbix_client zibbix_client = zibbix_client_factory.get_zibbix_client();
//        //获取所有问题机器
//        List<zibbix_agent> host_with_event = zibbix_client.get_host_with_event();
//        //所有主机的name
//        List<zibbix_agent> all_host = zibbix_client.get_all_host();
//        all_host.forEach(host -> {
////            if (!host.getHost().contains("Z")) {
//            System.out.println(host.getHost());
////            System.out.println("cpu usage: " + zibbix_client_util.get_percent(zibbix_client.get_monitor(host, zibbix_monitor_items.CPU_USAGE).getJSONObject(0)));
////            System.out.println("disk usage " + zibbix_client_util.get_value(zibbix_client.get_monitor(host, zibbix_monitor_items.DISK_USAGE).getJSONObject(0)));
////            System.out.println("disk total: " + zibbix_client_util.get_value(zibbix_client.get_monitor(host, zibbix_monitor_items.DISK_TOTAL).getJSONObject(0)));
////            System.out.println("disk per: " + zibbix_client_util.get_percent(zibbix_client.get_monitor(host, zibbix_monitor_items.DISK_AVL_PERCENT).getJSONObject(0)));
//            System.out.println("mem avl: " + zibbix_client_util.get_value(zibbix_client.get_monitor(host, zibbix_monitor_items.MEM_AVL).getJSONObject(0)));
//            System.out.println("mem total: " + zibbix_client_util.get_value(zibbix_client.get_monitor(host, zibbix_monitor_items.MEM_TOTAL).getJSONObject(0)));
////            }
//        });
        Scanner scanner = new Scanner(System.in);
        int number = scanner.nextInt();
        System.out.println(number + (number % 2 == 0 ? "" : "不") + "是偶数！");
    }


}
